package com.zkthink.ceres.member.dto;


import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 会员认证
 * </p>
 *
 * @author chenke
 * @since 2020-11-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MemberAuthenticationUpdateDTO", description = "会员认证")
public class MemberAuthenticationUpdateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    private Long mid;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @Length(max = 100, message = "姓名长度不能超过100")
    private String name;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    @Length(max = 18, message = "身份证号长度不能超过18")
    private String idCard;

    /**
     * 审核状态0:未填写 1:正在审核 2:审核通过 3:审核未通过
     */
    @ApiModelProperty(value = "审核状态 0:重新填写 1:正在审核 2:审核通过 3:审核未通过")
    private Integer status;

    @ApiModelProperty(value = "身份证图像正面id", required = true)
    @NotNull(message = "文件id不能为空")
    private Long frontImgId;

    @ApiModelProperty(value = "身份证图像反面id", required = true)
    @NotNull(message = "文件id不能为空")
    private Long reverseImgId;

    /**
     * 身份证图像正面文件访问链接
     */
    @ApiModelProperty(value = "身份证图像正面url访问链接")
    @Length(max = 255, message = "身份证图像正面url长度不能超过255")
    private String frontImgUrl;

    /**
     * 身份证图像反面文件访问链接
     */
    @ApiModelProperty(value = "身份证图像反面url访问链接")
    @Length(max = 255, message = "身份证图像反面url长度不能超过255")
    private String reverseImgUrl;

    /**
     * 审核批注
     */
    @ApiModelProperty(value = "审核批注")
    @Length(max = 255, message = "审核批注长度不能超过255")
    private String remark;
}
